package cn.yitun.chat.yitunservercommonlib.config;

import cn.yitun.chat.yitunservercommonlib.constant.ServerConstant;

import java.util.ArrayList;
import java.util.List;

/**
 * Date 2019-01-15 16:34:38<br>
 * Description
 * 
 * @author yitun<br>
 * @since 1.1
 */

public class ServerConfig {

	/**
	 * 网络协议类型列表
	 */
	List<String> protocolList = new ArrayList<>();
	/**
	 * 地址类型列表
	 */
	List<String> addressTypeList = new ArrayList<>();
	/**
	 * 服务类型列表
	 */
	List<String> serverTypeList = new ArrayList<>();

	public ServerConfig() {

		protocolList.add(ServerConstant.Protocol.TCP.value());
		protocolList.add(ServerConstant.Protocol.UDP.value());
		protocolList.add(ServerConstant.Protocol.HTTP.value());
		protocolList.add(ServerConstant.Protocol.WebSocket.value());
		protocolList.add(ServerConstant.Protocol.FTP.value());

		addressTypeList.add(ServerConstant.AddressType.IPv4.value());
		addressTypeList.add(ServerConstant.AddressType.IPv6.value());
		addressTypeList.add(ServerConstant.AddressType.URL.value());

		serverTypeList.add(ServerConstant.ServerType.main.value());
		serverTypeList.add(ServerConstant.ServerType.api.value());
		serverTypeList.add(ServerConstant.ServerType.file.value());
		serverTypeList.add(ServerConstant.ServerType.video.value());
		serverTypeList.add(ServerConstant.ServerType.voice.value());
	}

	public List<String> getProtocolList() {
		return protocolList;
	}

	public List<String> getAddressTypeList() {
		return protocolList;
	}

	public List<String> getServerTypeList() {
		return serverTypeList;
	}

}
